package com.shensi.api.pay.pojo;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * ad对象 customer_dialogue_ad_template
 * 
 * @author joeley
 * @date 2022-09-29
 */
public class CustomerDialogueAdTemplate
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long adId;

    /** 油企id */
    private Long enterpriseId;

    /** 名称 */
    private String adName;

    /** text文本消息，image图片消息，link图文链接，miniprogrampage小程序卡片 */
    private String type;

    /** 文本消息内容，type=text时必填 */
    private String content;

    /** 媒体ID，type=image时必填 */
    private String mediaId;

    /** 消息标题，type=link或miniprogrampage时必填 */
    private String title;

    /** 图文链接，type=link时必填 */
    private String description;

    /** 图文链接被点击后跳转的链接，type=link时必填 */
    private String url;

    /** 图文链接的图片链接，支持 JPG、PNG，大图 640 X 320，小图 80 X 80，type=link时必填 */
    private String thumbUrl;

    /** 小程序的页面路径，type=miniprogrampage必填 */
    private String pagepath;

    /** 小程序消息卡片的封面，image 类型的 media_id，520*416，type=miniprogrampage时必填 */
    private String thumbMediaId;

    public void setAdId(Long adId) 
    {
        this.adId = adId;
    }

    public Long getAdId() 
    {
        return adId;
    }
    public void setEnterpriseId(Long enterpriseId) 
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId() 
    {
        return enterpriseId;
    }
    public void setAdName(String adName) 
    {
        this.adName = adName;
    }

    public String getAdName() 
    {
        return adName;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setMediaId(String mediaId) 
    {
        this.mediaId = mediaId;
    }

    public String getMediaId() 
    {
        return mediaId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setThumbUrl(String thumbUrl) 
    {
        this.thumbUrl = thumbUrl;
    }

    public String getThumbUrl() 
    {
        return thumbUrl;
    }
    public void setPagepath(String pagepath) 
    {
        this.pagepath = pagepath;
    }

    public String getPagepath() 
    {
        return pagepath;
    }
    public void setThumbMediaId(String thumbMediaId) 
    {
        this.thumbMediaId = thumbMediaId;
    }

    public String getThumbMediaId() 
    {
        return thumbMediaId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adId", getAdId())
            .append("enterpriseId", getEnterpriseId())
            .append("adName", getAdName())
            .append("type", getType())
            .append("content", getContent())
            .append("mediaId", getMediaId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("url", getUrl())
            .append("thumbUrl", getThumbUrl())
            .append("pagepath", getPagepath())
            .append("thumbMediaId", getThumbMediaId())
            .toString();
    }
}
